home *** CD-ROM | disk | FTP | other *** search
/ MacAdvocate 2 / apple-mac-advocate-ii-fall-1997.iso / mac / Goodies / Fun Stuff / Calculators / iCount / iCount.rsrc / STR#_10150.txt < prev    next >
Encoding:
Text File  |  1995-12-20  |  1.0 KB  |  69 lines

  1. sqr(x)
  2. The square of number x is x*x.
  3. This is equivalent to typing x^2.
  4.  
  5.  
  6. Example: sqr(5)
  7.  
  8. cube(x)
  9. The cube of number x is x*x*x.
  10. This is equivalent to typing x^3.
  11.  
  12.  
  13. Example: cube(5)
  14.  
  15. sqrt(x)
  16. The square root of number x.
  17. This is equivalent to typing ‚àöx.
  18.  
  19.  
  20. Example: cube(25)
  21.  
  22. ln(x)
  23. The (natural) logarithm of number x to the base of e.
  24.  
  25.  
  26. Example: ln(100)
  27.  
  28. log(x)
  29. The logarithm of number x to the base of 10.
  30.  
  31.  
  32. Example: log(100)
  33.  
  34. fact(x)
  35. The factorial of x is the product of all positive integers less than and equal to x (max x=1754).
  36.  
  37. Example: fact(5)
  38.  
  39. abs(x)
  40. The absolute (or positive) value of number x.
  41.  
  42.  
  43. Example: abs(5-25)
  44.  
  45. rand()
  46. Returns a random integer in the range of 0 to 100.
  47. The brackets can be ignored.
  48.  
  49. Example: rand
  50.  
  51. bitwise or(x,y).
  52. Turns bits on if either of the bits being compared in x or y is 1.
  53.  
  54.  
  55. Example: or(4,1)
  56.  
  57. bitwise exclusive or(x,y).
  58. Turns bits on if the bits being compared in x and y are different.
  59.  
  60.  
  61. Example: xor(5,1)
  62.  
  63. bitwise and.
  64. Turns bits on if both of the bits being compared in x and y are 1.
  65.  
  66.  
  67. Example: and(5,1)
  68.  
  69.